package com.aat.dxfy.rmi.demo1;

import javax.naming.Context;
import javax.naming.InitialContext;

public class WarehouseServer {

	public static void main(String[] args) throws Exception {
		System.out.println("--------------");
		WarehouseImpl house=new WarehouseImpl();
		System.out.println("binding server...");
		Context ctx=new InitialContext();
		ctx.bind("rmi:house", house);
		
		System.out.println("Wait for clients...");
	}

}
